<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2024/10/7
  Time: 17:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% if(session.getAttribute("ifLogin")==null)
{
    response.sendRedirect("login.jsp");
}
else {
    if(!(Boolean)session.getAttribute("ifLogin"))
    {
        response.sendRedirect("login.jsp");
    }
}
%>

<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="addMessageServlet" method="post">
    标题<input type="text" name="title"> <br>
    留言内容 <br>
    <textarea name="content"></textarea> <br>
    <input type="submit" value="添加">
</form>

</body>
</html>
